﻿/*----------------------------------------------------------------
 * 
 * 版权所有：Copyright (C) 2012 
 * 
 * 文件名：UploadController.cs
 * 文件功能描述：
 * 
 * 
 * 作 者：zhangq
 * 邮 箱：zhangqiang@bamabest.com
 * 日 期：2013-02-04 01:55:35
 * 
 * 
 * 修改标识： Author
 * 修改描述： 相关描述
 * 
 * ---------------------------------------------------------------- */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebPlatform.Controllers
{

    /// <summary>
    /// 
    /// </summary>
    public class UploadController : Controller
    {

        /// <summary>
        /// 
        /// </summary>
        public ActionResult Index()
        {
            return View();
        }


        /// <summary>
        /// 上传文件
        /// </summary>
        /// <param name="imgFile">待上传的文件</param>
        /// <returns>ActionResult</returns>
        [HttpPost]
        public ActionResult FileUpload(HttpPostedFileBase file)
        {

            //var p = "";
            //String fileExt = Path.GetExtension(imgFile.Filename).ToLower();

            
            return Json(new { fileUrl = "", Status = "OK", baseURL =   "/p" });

        }

    }
}
